package com.example.demo.entity;

import java.util.ArrayList;
import java.util.List;

public class TeamExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TeamExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTeamIdIsNull() {
            addCriterion("TEAM_ID is null");
            return (Criteria) this;
        }

        public Criteria andTeamIdIsNotNull() {
            addCriterion("TEAM_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTeamIdEqualTo(Integer value) {
            addCriterion("TEAM_ID =", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdNotEqualTo(Integer value) {
            addCriterion("TEAM_ID <>", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdGreaterThan(Integer value) {
            addCriterion("TEAM_ID >", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TEAM_ID >=", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdLessThan(Integer value) {
            addCriterion("TEAM_ID <", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdLessThanOrEqualTo(Integer value) {
            addCriterion("TEAM_ID <=", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdIn(List<Integer> values) {
            addCriterion("TEAM_ID in", values, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdNotIn(List<Integer> values) {
            addCriterion("TEAM_ID not in", values, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdBetween(Integer value1, Integer value2) {
            addCriterion("TEAM_ID between", value1, value2, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TEAM_ID not between", value1, value2, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamNameIsNull() {
            addCriterion("TEAM_NAME is null");
            return (Criteria) this;
        }

        public Criteria andTeamNameIsNotNull() {
            addCriterion("TEAM_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andTeamNameEqualTo(String value) {
            addCriterion("TEAM_NAME =", value, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamNameNotEqualTo(String value) {
            addCriterion("TEAM_NAME <>", value, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamNameGreaterThan(String value) {
            addCriterion("TEAM_NAME >", value, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamNameGreaterThanOrEqualTo(String value) {
            addCriterion("TEAM_NAME >=", value, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamNameLessThan(String value) {
            addCriterion("TEAM_NAME <", value, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamNameLessThanOrEqualTo(String value) {
            addCriterion("TEAM_NAME <=", value, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamNameLike(String value) {
            addCriterion("TEAM_NAME like", value, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamNameNotLike(String value) {
            addCriterion("TEAM_NAME not like", value, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamNameIn(List<String> values) {
            addCriterion("TEAM_NAME in", values, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamNameNotIn(List<String> values) {
            addCriterion("TEAM_NAME not in", values, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamNameBetween(String value1, String value2) {
            addCriterion("TEAM_NAME between", value1, value2, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamNameNotBetween(String value1, String value2) {
            addCriterion("TEAM_NAME not between", value1, value2, "teamName");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdIsNull() {
            addCriterion("TEAM_MANAGER_ID is null");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdIsNotNull() {
            addCriterion("TEAM_MANAGER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdEqualTo(Integer value) {
            addCriterion("TEAM_MANAGER_ID =", value, "teamManagerId");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdNotEqualTo(Integer value) {
            addCriterion("TEAM_MANAGER_ID <>", value, "teamManagerId");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdGreaterThan(Integer value) {
            addCriterion("TEAM_MANAGER_ID >", value, "teamManagerId");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TEAM_MANAGER_ID >=", value, "teamManagerId");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdLessThan(Integer value) {
            addCriterion("TEAM_MANAGER_ID <", value, "teamManagerId");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdLessThanOrEqualTo(Integer value) {
            addCriterion("TEAM_MANAGER_ID <=", value, "teamManagerId");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdIn(List<Integer> values) {
            addCriterion("TEAM_MANAGER_ID in", values, "teamManagerId");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdNotIn(List<Integer> values) {
            addCriterion("TEAM_MANAGER_ID not in", values, "teamManagerId");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdBetween(Integer value1, Integer value2) {
            addCriterion("TEAM_MANAGER_ID between", value1, value2, "teamManagerId");
            return (Criteria) this;
        }

        public Criteria andTeamManagerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TEAM_MANAGER_ID not between", value1, value2, "teamManagerId");
            return (Criteria) this;
        }

        public Criteria andTeamTypeIsNull() {
            addCriterion("TEAM_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andTeamTypeIsNotNull() {
            addCriterion("TEAM_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andTeamTypeEqualTo(String value) {
            addCriterion("TEAM_TYPE =", value, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamTypeNotEqualTo(String value) {
            addCriterion("TEAM_TYPE <>", value, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamTypeGreaterThan(String value) {
            addCriterion("TEAM_TYPE >", value, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamTypeGreaterThanOrEqualTo(String value) {
            addCriterion("TEAM_TYPE >=", value, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamTypeLessThan(String value) {
            addCriterion("TEAM_TYPE <", value, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamTypeLessThanOrEqualTo(String value) {
            addCriterion("TEAM_TYPE <=", value, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamTypeLike(String value) {
            addCriterion("TEAM_TYPE like", value, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamTypeNotLike(String value) {
            addCriterion("TEAM_TYPE not like", value, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamTypeIn(List<String> values) {
            addCriterion("TEAM_TYPE in", values, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamTypeNotIn(List<String> values) {
            addCriterion("TEAM_TYPE not in", values, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamTypeBetween(String value1, String value2) {
            addCriterion("TEAM_TYPE between", value1, value2, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamTypeNotBetween(String value1, String value2) {
            addCriterion("TEAM_TYPE not between", value1, value2, "teamType");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdIsNull() {
            addCriterion("TEAM_OF_CONPANTY_ID is null");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdIsNotNull() {
            addCriterion("TEAM_OF_CONPANTY_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdEqualTo(Integer value) {
            addCriterion("TEAM_OF_CONPANTY_ID =", value, "teamOfConpantyId");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdNotEqualTo(Integer value) {
            addCriterion("TEAM_OF_CONPANTY_ID <>", value, "teamOfConpantyId");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdGreaterThan(Integer value) {
            addCriterion("TEAM_OF_CONPANTY_ID >", value, "teamOfConpantyId");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TEAM_OF_CONPANTY_ID >=", value, "teamOfConpantyId");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdLessThan(Integer value) {
            addCriterion("TEAM_OF_CONPANTY_ID <", value, "teamOfConpantyId");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdLessThanOrEqualTo(Integer value) {
            addCriterion("TEAM_OF_CONPANTY_ID <=", value, "teamOfConpantyId");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdIn(List<Integer> values) {
            addCriterion("TEAM_OF_CONPANTY_ID in", values, "teamOfConpantyId");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdNotIn(List<Integer> values) {
            addCriterion("TEAM_OF_CONPANTY_ID not in", values, "teamOfConpantyId");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdBetween(Integer value1, Integer value2) {
            addCriterion("TEAM_OF_CONPANTY_ID between", value1, value2, "teamOfConpantyId");
            return (Criteria) this;
        }

        public Criteria andTeamOfConpantyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TEAM_OF_CONPANTY_ID not between", value1, value2, "teamOfConpantyId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}